package day1601;

import java.util.HashMap;
import java.util.Random;
import java.util.Scanner;

public class hashmap2 {
    public static void main(String[] args) {
        String a = new Scanner(System.in).nextLine();
        char[] b = a.toCharArray();
        HashMap<Character,Integer> c =new  HashMap();
        for (int i=0;i<b.length;i++){
            Character d = b[i];
           if( c.get(d)==null){
               c.put(d,1);
            }else{
               c.put(d,c.get(d)+1);
            }
        }
        System.out.println(c);
    }
}
